/**
 * 
 */
//var btnList ,btnInput,btnView
function general(){//게시판에서 사용하는 공통 모듈
//	btnList = document.getElementById('btnList');
//	if(btnList !=null){
//		btnList.onclick =function(){
//			location.href = 'list.jsp';
//
//		}
//		
//	}
	if (document.getElementById('btnList') != null) {
		document.getElementById('btnList').onclick = function() {
			location.href = 'list.jsp';
		}
	}
	if (document.getElementById('btnInput') != null) {
		document.getElementById('btnInput').onclick = function() {
			location.href = 'input.jsp';
		}
	}
	if (document.getElementById('bthModify') != null) {
		document.getElementById('bthModify').onclick = function() {
			location.href = 'modify.jsp';
		}
	}
	if (document.getElementById('btnDelete') != null) {
		document.getElementById('btnDelete').onclick = function() {
			location.href = 'delete_result.jsp';
		}
	}
	if (document.getElementById('btnView') != null) {
		document.getElementById('btnView').onclick = function() {
			location.href = 'view.jsp';
		}
	}
	if (document.getElementById('btnSave') != null) {
		document.getElementById('btnSave').onclick = function() {
			location.href = 'modify_result.jsp';
		}
	}

	
	
}
function goPage(page){
	
	location.href='view.jsp?page='+page;
}

function inputInit(){// input과 관련되 모듈
	
	general();
}
function listInit(){
	general();

}
function viewInit(){
	general();

}
function modifyInit(){
	general();

}
function deleteInti(){
	
	general();

}